﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Chinook.Core.DomainModel
{
    public class Playlist : EntityBase
    {
     
        public virtual string Name { get; set; }

        public virtual IList<Track> Tracks { get; private set; }

        public virtual void AddTrack(Track track)
        {
            Tracks.Add(track);
        }

        public Playlist()
        {
            Tracks = new List<Track>();
        }

        protected override void CheckForBrokenRules()
        {
            throw new NotImplementedException();
        }
    }

}
